<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- 引入bootstrap框架的样式文件 -->
    <link rel="stylesheet" href="plugins/bootstrap/css/bootstrap.css" type="text/css">

    <style>
        #headerImg {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            padding: 5px;
        }

        @media all and (max-width: 768px) {
            #phone_btn {
                margin-top: 5px;
            }
        }
    </style>

</head>

<body>

    <!-- 响应式导航 - Start -->
    <div class="container-fluid">
        <div class="row">

            <nav class="navbar navbar-default" role="navigation">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse"
                            data-target="#example-navbar-collapse">
                            <span class="sr-only">切换导航</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">图书展示</a>
                    </div>
                    <div class="collapse navbar-collapse" id="example-navbar-collapse">
                        <ul class="nav navbar-nav navbar-right">
                            <li class="active"><a href="#">首页</a></li>
                            <li><a href="#" data-toggle="modal" data-target="#myModal">登录</a></li>
                            <li><a href="#">注册</a></li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    个人中心 <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">jmeter</a></li>
                                    <li><a href="#">EJB</a></li>
                                    <li><a href="#">Jasper Report</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">分离的链接</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">另一个分离的链接</a></li>
                                </ul>
                            </li>
                            <li><img src="imgs/zly.jpg" id="headerImg"></li>
                        </ul>
                    </div>
                </div>
            </nav>
        </div>
    </div>
    <!-- 响应式导航 - end -->

    <!-- 模态框start -->
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">用户登录入口</h4>
                </div>
                <!-- 登录表单 -->
                <div class="modal-body">
                    <form class="form-horizontal" role="form">
                        <div class="form-group has-feedback">
                            <label for="firstname" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="firstname" placeholder="请输入名字">
                                <span class="form-control-feedback glyphicon glyphicon-user"></span>
                            </div>
                        </div>
                        <div class="form-group has-feedback">
                            <label for="password" class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="lastname" placeholder="请输入密码">
                                <span class="form-control-feedback glyphicon glyphicon-lock"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox">请记住我
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">登录</button>
                            </div>
                        </div>
                    </form>
                </div>

            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
    <!-- 模态框 end -->

    <!-- 订单的查询区域 begin -->
    <div class="container" style="margin-bottom:20px;">
        <form class="bs-example bs-example-form" role="form">
            <div class="row">
                <div class="col-md-4">
                    <div class="input-group">
                        <input type="text" class="form-control">
                        <span class="input-group-btn">
                            <button class="btn btn-default" type="button">Go!</button>
                        </span>
                    </div><!-- /input-group -->
                </div><!-- /.col-lg-6 -->
                <div class="col-md-4" id="phone_btn">
                    <button class="btn btn-default">添加</button>
                    <button class="btn btn-danger">删除</button>
                    <button class="btn btn-warning"><a href="更新订单.html">更新</a></button>
                </div>
            </div><!-- /.row -->


        </form>
    </div>

    <!-- 订单的查询区域 end -->

    <!-- 表格来存放订单信息 -->
    <div class="container">
        <div class="row">
            <div class="table-responsive ">
                <table class="table">
                    <caption>手机订单详情</caption>
                    <thead>
                        <tr>
                            <th><input type="checkbox" id="cks"></th>
                            <th>产品序号</th>
                            <th>产品名称</th>
                            <th>购买数量</th>
                            <th>产品总价</th>
                            <th>付款日期</th>
                            <th>状态</th>

                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>1001</td>
                            <td>华为</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                            <td><a href="javascript:pannel()">显示更多</a></td>

                        </tr>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>小米</td>
                            <td>iphone</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                            <td><a href="javascript:pannel()">显示更多</a></td>

                        </tr>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>1001</td>
                            <td>华为</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                        </tr>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>小米</td>
                            <td>iphone</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                        </tr>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>1001</td>
                            <td>华为</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                        </tr>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>小米</td>
                            <td>iphone</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                        </tr>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>1001</td>
                            <td>华为</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                        </tr>
                        <tr>
                            <td><input type="checkbox"></td>
                            <td>小米</td>
                            <td>iphone</td>
                            <td>12</td>
                            <td>10220.30</td>
                            <td>2012-01-01</td>
                            <td>未付款</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="container" id="orderDetails" style="display: none">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    1001的订单
                </h3>
            </div>
            <div class="panel-body">
                面板内容
            </div>
        </div>

    </div>


    <!-- bootstrap中的js插件依赖于jquery框架,所有必须先引入jquery的js文件 -->
    <script src="plugins/jquery/jquery.min.js"></script>
    <!-- 引入bootstrap的js文件 -->
    <script src="plugins/bootstrap/js/bootstrap.js"></script>

    <script>
        function pannel(){
            var div = document.getElementById("orderDetails");
            div.style.display="block";
        }
    </script>
</body>

</html>